package weekend3;

public class StringBuilderDemo {
    public static void main(String[] args) {


        String str="我的爱只能够让你一个人独自拥有";
        StringBuilder stringBuilder=new StringBuilder(str);

        stringBuilder.append(",我的灵和魂魄不停守候在你心门口");
        System.out.println(stringBuilder);

        stringBuilder.replace(16,22,"我的伤和眼泪化为乌有");
        System.out.println(stringBuilder);

        stringBuilder.insert(26,"为你而流,");
        System.out.println(stringBuilder);

        stringBuilder.delete(30,40);
        System.out.println(stringBuilder);

    }
}
